
u9ImHd.registerModule('Demo', [])

    .config(['$stateProvider', function ($stateProvider) {
        $stateProvider
            .state('Demo', {
                url: '/Demo',
                templateUrl: u9ImHd.getFullPath('tpls/home.html', 'Demo'),
                controller: 'Demo.HomeCtrl',
                resolve: {
                    loadFile: ['$ocLazyLoad', function($ocLazyLoad) {
                        return $ocLazyLoad.load({
                            name: 'Demo.file',
                            files: [
                                u9ImHd.getFullPath('js/controllers/Demo.HomeCtrl.js', 'Demo'),
                                u9ImHd.getFullPath('js/controllers/Demo.DetailCtrl.js', 'Demo')
                            ]
                        });
                    }]
                }
            })
            .state('Demo-detail', {
                url: '/Demo-detail',
                templateUrl: u9ImHd.getFullPath('tpls/detail.html', 'Demo'),
                controller: 'Demo.DetailCtrl'
            });
    }]);
